<?php
class Zenddn_File_EmailTemplate{
    
    public function EmailActive(){
    	$fp = fopen(TEMPLATE_PATH . "/email/active.html", "r") or exit("khong tim thay file can mo");
        
        $content = "";
        
        while(!feof($fp)){
            $content .= fgets($fp);
        }
        
        fclose($fp);
        
        return $content;
    }
    
    public function getEmailTemplate($file){
    	$fp = fopen(TEMPLATE_PATH . "/email/$file", "r") or exit("khong tim thay file can mo");
        
        $content = "";
        
        while(!feof($fp)){
            $content .= fgets($fp);
        }
        
        fclose($fp);
        
        return $content;
    }
}